<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <!--模板-->
    <div id="app">
        {{new Date() | dateFilter}}
    </div>
</body>
<script src="./js/vue.js"></script>
<script src="https://cdn.bootcdn.net/ajax/libs/moment.js/2.29.1/moment.min.js"></script>
<script>

    Vue.filter("dateFilter",(value)=>{
        //value : 过滤器使用位置的原始值
        return moment(value).format('YYYY-MM-DD HH:mm:ss');
    })

    new Vue({
        el:"#app",
        filters:{
            msgFilter(value){
                return `¥¥¥¥¥¥${value}`
            }
        }
    })
</script>
</html>